//简历工作经历
import React, { Component } from 'react'
import {
    View,
    Text,
    TouchableOpacity,
} from 'react-native';

import { resumefourStyle as styles } from '../../../../../styles';
import Re_experience4 from './re_experience4';
import Icon from 'react-native-vector-icons/Ionicons';


export default class Resumeexperience extends Component {
    constructor(props) {
        super(props);
    }
    render() {
        return (
            <View style={styles.fourall}>
                <Text style={styles.fourtop}>工作经历</Text>
                <Re_experience4
                    resume={this.props.resume}
                    jobExps={this.props.jobExps}
                    actions={this.props.actions}
                    navigation={this.props.navigation}
                />
                <TouchableOpacity
                    style={styles.fourbot}
                    activeOpacity={1}
                    onPress={() => { this.goGet('Rexpedit', this.props.resume, {}, this.props.actions) }}
                >
                    <Icon
                        name={'md-add'}
                        size={20}
                        color={'#3d9ccc'} style={styles.fouriconb2} />
                    <Text style={styles.fourtxt1}>添加工作经历</Text>
                </TouchableOpacity>
            </View>
        )
    }
    goGet(name, object, jobExp, action) {
        this.props.navigation.navigate(name, { resume: object, jobExp: jobExp, actions: action });
    }
}